package com.ming.reggie.service;

import com.ming.reggie.common.R;
import com.ming.reggie.entity.Employee;
import com.ming.reggie.entity.Page;

import java.util.List;

public interface EmployeeService {

    /**
     * 登录的业务方法
     * @param employee
     * @return
     */
    R<Employee> login(Employee employee);

    /**
     * 新增员工的业务方法
     * @param employee
     * @return
     */
    boolean InsertEmployee(Employee employee);

    /**
     * 分页查询
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    Page<Employee> findByPage(Integer page,Integer pageSize,String name);

    /**
     * 根据id查找员工
     * @param id
     * @return
     */
    Employee findById(Long id);

    /**
     * 修改员工
     * @param employee
     * @return
     */
    Integer update(Employee employee);
}
